<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 1. 准备容器  -->
  <div id="app">
    <p> {{ title }} </p>
    <p> {{ nickname.toUpperCase() }} </p>
    <p> {{ nickname.toLowerCase() }} </p>
    <p> {{ age >= 18 ? "成年" : "未成年" }} </p>
    <p> {{ person.name }} </p>
    <!-- <p> {{ ccc }}</p> -->
    <!-- <p>{{ if(age >= 18) {} }}</p> -->
    <!-- <p title="{{title}}"></p>  -->
  </div>

  <!-- 2. 引入Vue  -->
  <script src="./js/vue.js"></script>

  <!-- 3. 创建Vue实例对象  -->
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        title: 'Hello Vue, 你好, こんにちは',
        nickname: 'ZHangSan',
        age: 18,
        person: {
          name: '李四',
          age: 18
        }
      }
    })
  </script>
</body>

</html>